package com.ff.xyh.feign.client.userfront;

import com.ff.xyh.common.entity.result.ResultObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Auther FF
 * @Date 2022年 11月 15日
 * @Time 18:04
 */

@FeignClient(value = "service-user-front", contextId = "UserFollowerClient")
@RequestMapping("/front-user")
public interface UserFollowerClient {
    /**
     * 用户关注
     */
    @RequestMapping("insert-user-follow")
    ResultObject insertUserFollow(
            @RequestParam(name = "id") String id,
            @RequestParam(name = "followerId") String followerId );

    @RequestMapping("delete-user-follow")
    ResultObject deleteUserFollow(
            @RequestParam(name = "id") String id,
            @RequestParam(name = "followerId") String followerId );

    @RequestMapping("delete-user-follow-id")
    ResultObject deleteUserFollowById(
            @RequestParam(name = "id") String id );

}
